<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>记录浏览次数</title>
</head>
<script src="js/jquery/jquery.min.js"></script>
<script>
    $(function () {
        $.post("/articles/incr",{id:1},function (data) {
                $("#sp").html(data)
        })
    })


</script>

<body>
    浏览人数：[<span id="sp" style="color: red">0</span>]
    新闻联播日报
</body>
</html>